<template>
  <!-- 输入框 -->
  <div class="searchs">
    <!-- icon图片 -->
    <router-link to="/">
    <van-icon class="default-icon" name="arrow-left" />
    </router-link>
    <router-link class="found" to="/search">
      <van-search
        class="search-content"
        left-icon=""
        v-model="value"
        right-icon="search"
        placeholder="请输入搜索关键词"
      />
    </router-link>

  </div>
</template>
<script>
export default {
  data() {
    return {
      value: "",
    };
  },
  methods: {
    onSearch() {},
  },
};
</script>

<style  lang="less">
.searchs {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 5;
  background-color: #fff;
  width: 100%;
  height: 60px;
  border-bottom: 1px solid #eee;
  display: flex;
  align-items: center;
  justify-content: center;

  .default-icon {
    font-size: 30px;
    color: #999;
  }
  .found {
    width: 85%;
    height: 75%;
    display: flex;
    align-items: center;
    justify-content: center;
    .search {
      font-size: 20px;
    }
    .search-content {
      width: 100%;
      height: 35px;
    }
    .van-field__right-icon .van-icon {
      font-size: 20px;
    }
    .van-field__control {
      background-color: #fff;
    }
    .van-search__content {
      background-color: #fff;
      border: 1px solid #ddd;
      border-radius: 15px;
    }
  }
}
</style>
